package com.rh.manage.annotation;

import org.springframework.stereotype.Indexed;

import java.lang.annotation.Documented;
import java.lang.annotation.ElementType;
import java.lang.annotation.Retention;
import java.lang.annotation.RetentionPolicy;
import java.lang.annotation.Target;

/**
 * 通过那个工厂实例的成员变量查找类型匹配的对象, 并注入
 */
@Indexed
@Documented
@Target({ElementType.FIELD})
@Retention(RetentionPolicy.RUNTIME)
public @interface FactoryAutowired {
    Class<?> value();
}
